<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		
		<script>
			let score = 85;  //百分之
			
			
			//score 90--  A    80-90  B 70-80 C  60-70 D     <60  
			
			// if(score/10 == 9 || score/10 == 10   ){
			// 	console.log("A")
			// }else if(score/10 == 8 ){
			// 	console.log("B")
			// }else if(score/10 == 7 ){
			// 	console.log("C")
			// }else if(score/10 == 6 ){
			// 	console.log("D")
			// }else{
			// 	console.log("E")
			// }
			
			let sc = Math.trunc(score/10) ;
			switch (sc){
				case 10:
				case 9:
					console.log("A"); break;
				case 8:
					console.log("B"); break;
				case 7:
					console.log("C"); break;
				case 6:
					console.log("D"); break;
				
				default:
					console.log("E"); break;
					break;
			}
			
			
			
			
			
		</script>
		
	</head>
	<body>
		<h3>请打开浏览器控制台，观察结果</h3>
		
		
	</body>
</html>